package io.renren.modules.jxgkphone.service.Impl;


import io.renren.modules.jxgkphone.dao.SchoolAnnounceMapper;
import io.renren.modules.jxgkphone.entity.SchoolAnnounce;
import io.renren.modules.jxgkphone.service.SchoolAnnounceService;
import io.renren.modules.jxgkphone.tempEntity.TempAnnounce;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SchoolAnnounceServiceImpl implements SchoolAnnounceService {
    @Autowired
    SchoolAnnounceMapper schoolAnnounceMapper;
    public List<TempAnnounce> SelectSchoolAnnounce(Integer count){
        List<TempAnnounce> ta=schoolAnnounceMapper.SelectSchoolAnnounce(count);
        return ta;
    }
    public List<TempAnnounce> SelectAllAnnounce(){
        List<TempAnnounce> ta=schoolAnnounceMapper.SelectAllAnnounce();
        return ta;
    }
    public List<SchoolAnnounce> SelectContent(String aid){
        List<SchoolAnnounce> sa=schoolAnnounceMapper.SelectContent(aid);
        return sa;
    }
}
